package cn.jizi.bshisy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data   //挂号单表
public class Register {
    private String rid;

    private String rtype;

    private String doctorld;

    private String name;

    private String department;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rdate;

    private Integer diagnose;

    public Register(String rid, String rtype, String doctorld, String name, String department, Date rdate,Integer diagnose) {
        this.rid = rid;
        this.rtype = rtype;
        this.doctorld = doctorld;
        this.name = name;
        this.department = department;
        this.rdate = rdate;
        this.diagnose = diagnose;
    }

    public Register() {
    }
}